package entity;

public class MobileCard {//手机卡类
    private String cardNumber;//卡号
    private String userName;//用户名
    private String password;//密码
    private BrandPackage serPackage;//对应的套餐
    private double consume;//消费金额
    private double money;
    private int realTalkTime;//实际通话时长
    private int realMassageNumbers;//实际短信条数
    private int realFlow;//实际流量

    public MobileCard() {
    }

    public MobileCard(String cardNumber, String userName, String password, BrandPackage serPackage, double consume, double money, int realTalkTime, int realMassageNumbers, int realFlow) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.password = password;
        this.serPackage = serPackage;
        this.consume = consume;
        this.money = money;
        this.realTalkTime = realTalkTime;
        this.realMassageNumbers = realMassageNumbers;
        this.realFlow = realFlow;
    }

    public void show(){
        System.out.println("卡号：" + cardNumber + "，用户名：" + userName + "，消费额："
                + consume + "，余额：" + money + "，实际通话时间：" + realTalkTime + "，实际信息数量：" + realMassageNumbers + "，实际流量：" + realFlow );
    }
    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public BrandPackage getSerPackage() {
        return serPackage;
    }

    public void setSerPackage(BrandPackage serPackage) {
        this.serPackage = serPackage;
    }

    public double getConsume() {
        return consume;
    }

    public void setConsume(double consume) {
        this.consume = consume;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getRealTalkTime() {
        return realTalkTime;
    }

    public void setRealTalkTime(int realTalkTime) {
        this.realTalkTime = realTalkTime;
    }

    public int getRealMassageNumbers() {
        return realMassageNumbers;
    }

    public void setRealMassageNumbers(int realMassageNumbers) {
        this.realMassageNumbers = realMassageNumbers;
    }

    public int getRealFlow() {
        return realFlow;
    }

    public void setRealFlow(int realFlow) {
        this.realFlow = realFlow;
    }
}
